package org.sxp.common.exception;

import org.aspectj.lang.JoinPoint;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author shenxingping
 * @date 2021/02/04
 */
public class XPUncaughtExceptionHandlerAspect {
    @Autowired
    private XPUncaughtExceptionHandler hsafUncaughtExceptionHandler;
    
    public void doBefore(JoinPoint jp) {
        Thread.setDefaultUncaughtExceptionHandler(this.hsafUncaughtExceptionHandler);
    }
}
